#pragma once
#include <semaphore.h>
#include <zookeeper/zookeeper.h>
#include <string>

class ZooKeeperClient{
    public:
    ZooKeeperClient();
    ~ZooKeeperClient();
    void Start();
    void Create(const std::string& path, const std::string& data, int state = 0);
    std::string GetData(const std::string& path);
    private:
    zhandle_t* m_zhandle;
};